/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package persistencia.sentencias;

/**
 *
 * @author Walther Cardoso
 */
public class SqlStatementDelete extends SqlStatement {
    
    public SqlStatementDelete(){
        super("DELETE");
    }
    
    @Override
    public String generarStatement(String nombreTabla, String nombreColumna, String id) {
        String retorno = "";
        retorno += super.getStatement() + " FROM " + nombreTabla + " WHERE " + nombreColumna + " = '" + id + "';";
        return retorno;
    }
    
}
